# -*- coding:utf-8 -*-
#@Time : 2020/12/11 14:57
#@Author: sl
#@File : stop_gunicorn.py
"""
停止gunicorn脚本
"""
import  os
os.system("sh ./bin/stopgunicorn.sh")

#!/bin/bash
# ID=`ps -ef | grep 'gunicorn' | grep -v "stopgunicorn" | grep -v "start_gunicorn" | grep -v "grep" | awk '{print $2}'`
# if [ "$ID" != "" ]
# then
#     for id in $ID
#     do
#     kill -9 $id
#     done
#     sleep 1
# fi